package net.dlz.example.service;

import net.dlz.example.domain.SearchUserResponse;
import net.dlz.example.domain.User;

import java.util.List;

public interface UserService {
    int  exit(String email);


    List<User> listUser();

    void insertUser(User user);

    List<User> findByName(String name);

    int saveUser(User user);

    User findUserByName(String userName);

    int deleteUser(String userid);

    SearchUserResponse findUserLinkName(Integer pageNum, String keywords, Integer pageSize);

    SearchUserResponse findAllUser(Integer pageNum, Integer pageSize);

    User findUserByPrimaryKey(String userId);

    int exist(String email);

    int updateByEmail(User user, String email);
}
